#include <iostream>
#include <unistd.h>
#include <stdlib.h>
using namespace std;

int main(int argc, char* argv[], char* env[])
{
    cout << "这是命令行参数" << endl;
    for(int i = 0; argv[i]; i++)
    {
        cout << i << " : " << argv[i] << endl;  
    }
    
    cout << "这是环境变量" << endl;
    for(int j = 0; env[j]; j++)
    {
        cout << j << " : " << env[j] << endl;
    }

    return 0;
}
